package com.campus.common.vo;

import com.campus.common.domain.order.Order;
import com.campus.common.domain.order.OrderItem;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @program: campus
 * @description:
 * @author: ENDING
 * @create: 2024-04-26 00:09
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderVo implements Serializable {
    private Order order;
    private List<OrderItem> orderItems;

    public void initOrder() {
        this.order.setIsPay(0);
        this.order.setIsSend(0);
        this.order.setIsFinish(0);
        this.order.setIsReturn(0);
        this.order.setState(1);
    }
}
